#include <stdio.h>

void signal_handler(int signum)
{
    printf("signal num:%d\n",signum);
}

int main(int argc, char const *argv[])
{
    signal(15,signal_handler);
    signal(9,signal_handler);

    int i=0;
    while(1)
    {
        printf("%d\n",i++);
        sleep(1);
    }
    return 0;
}
